package com.app.designpatternslearn.behavior.interpreterpattern.code

class AndExpression(private val expr1: AbstractExpression, private val expr2: AbstractExpression) : AbstractExpression {

    override fun interpret(context: String): Boolean = expr1.interpret(context) && expr2.interpret(context)

}